#!python
#
# Pyste file for osg::MFReal32 and osg::MFReal64

Import("Field.pyste")

MField = Template('osg::MField', 'OpenSG/OSGMFSysTypes.h')

for size in [32, 64]:
   name = 'Real%d' % size
   c = MField('osg::' + name)
   final(c)
   rename(c, 'MF' + name)
   set_policy(c.getType, return_internal_reference(1))
   set_policy(c.getContentType, return_internal_reference(1))
   #set_policy(c.getValueByStr, return_internal_reference(1))
   set_policy(c.getValue, return_value_policy(copy_non_const_reference))
   set_policy(c.getValues, return_internal_reference(1))
   set_policy(c.front, return_value_policy(copy_non_const_reference))
   set_policy(c.back, return_value_policy(copy_non_const_reference))
   exclude(c.syncWith)
   exclude(c.copyToBin)
   exclude(c.copyFromBin)
   exclude(c.getValueByStr)
   exclude(c.front)
   exclude(c.back)
   exclude(c.getValue)
